package com.livgo;

import com.aliyun.oss.OSSClient;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;

@ExtendWith(SpringExtension.class)
@SpringBootTest
public class test {

    @Autowired
    OSSClient ossClient;

    // @6a7073d5
    @Test
    public void test() throws MalformedURLException {
        URL url = new URL("http://filetocode.oss-cn-chengdu.aliyuncs.com/2025/10/1978319951525707776.zip?Expires=1760503206&OSSAccessKeyId=LTAI5tNjX55BtKxvEb8NL97v&Signature=QpaYkJ9vHUQAiJDEC9oNu9v%2Fbj4%3D");
        System.out.println(url.getPath());
    }

}
